window.onload = function(){
	var socket = io.connect('http://localhost:3000');
	window.socket = socket;

	socket.on('news',function(data){
		console.log(data);
		socket.emit('my other event',{ my : 'data' });
	});
}